home *** CD-ROM | disk | FTP | other *** search
- //UHMath.h
- //By Murtaza Ziauddin, University of Houston.
- //email address ziauddin@tree.egr.uh.edu
- //You may freely copy and resuse this code.
- //This Object communicates with Mathematica in the Mathlink mode.
-
- #import <appkit/appkit.h>
- #import "/LocalApps/Mathematica.app/Library/Mathematica/MathLink/Includes/mathlink.h"
-
- @interface UHMath:Object
- {
- MLINK mlp;
- int code;
- NXStream *stream;
- char *plotErrorText;
- id resultText;
- id resultPSView;
- }
-
- -init;
- -openLink;
- -closeLink;
- -evaluateExpression:(char *)exp toString:(char **)string;
- -evaluateExpression:(char *)exp toText:(id) aText;
- -plotExpression:(char *)exp toPSView: aView;
- -(char *)plotError;
- -evaluateExpressionFrom:sender;
- -plotExpressionFrom:sender;
- @end
-